import warnings
warnings.filterwarnings('ignore')
import time
whole_page_start_time = time.time()
import os
import sys
import inspect
import tempfile
import skimage.io as im_io
from PIL import TiffImagePlugin as tip
from PIL.TiffImagePlugin import Image
import matplotlib.pyplot as pyplot
sys.path.insert(0, '../src/')
sys.path.insert(0, 'scalygraphic/src/')
from im_scale_products import *
from impute_color import *
def get_test_domain_dict(it_max=None, scale_dist=None):
""" Usage:
domain_dict = get_center_domain_dict(it_max, scale_dist)
"""
if it_max is None:
it_max = 64
if scale_dist is None:
scale_dist = 12
domain_dict = get_default_domain_dict()
domain_dict['it_max'] = it_max
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
domain_dict['n_rows'] = 255
domain_dict['n_cols'] = 255
return domain_dict
def get_results_gray_set(list_tuple, domain_dict):
""" Usage: new_im = get_results_gray_set(list_tuple, domain_dict)
"""
ET, Z, Z0 = eq_iter.get_primitives(list_tuple, domain_dict)
Zd_n2, Zr_n2, ETn_n2 = etg_norm(Z0, Z, ET)
g_im_et = primitive_2_gray(ETn_n2)
# complex result vectors: distance component
g_im_Zd = primitive_2_gray(Zd_n2)
# complex result vectors: rotation component
g_im_Zr = primitive_2_gray(Zr_n2)
im_gray = get_gray_im(ET, Z, Z0)
im_list = [g_im_et, g_im_Zd, g_im_Zr, im_gray]
new_im = cat_im_list_hori(im_list)
return new_im
def display_calc_result(list_tuple, domain_dict):
""" Usage: (None) display_calc_result(list_tuple, domain_dict)
"""
t0 = time.time()
new_im = get_results_gray_set(list_tuple, domain_dict)
tt = time.time() - t0
print('domain & run constraints:')
for k, v in domain_dict.items():
print('%30s: %s'%(k,v))
print('\n')
print('%20s: %0.6f seconds\n%20s:'%(fcn_name, tt, 'parameters'), p)
print('\n%15s%30s%30s%30s'%('ET','Zd','Zr', 'All'))
display(new_im)
def display_source(fctn_hndl):
""" Usage: (None) display_source(fctn_hndl)
print the source code for a givin function
"""
S = inspect.getsource(fctn_hndl)
print(S)
print('\t\t\tDomain dictionary for test:')
domain_dict = get_test_domain_dict()
for k, v in domain_dict.items():
print(k,v)
print('\n\tEnumeration of available functions: tuples of (Name, function_handle)\n')
for k, v in name_functionhandle_dict.items():
print('%3i %25s'%(k, v[0]), v[1])
Domain dictionary for test: center_point 0j zoom 0.5 theta 0.0 it_max 64 max_d 24.0 n_rows 255 n_cols 255 Enumeration of available functions: tuples of (Name, function_handle) 0 ElGato <function ElGato at 0x7fc3980d4ea0> 1 IslaLace <function IslaLace at 0x7fc3980d4c80> 2 ItchicuPpwrF <function ItchicuPpwrF at 0x7fc3980d4d90> 3 Nautuliz <function Nautuliz at 0x7fc3980d49d8> 4 RoyalZ <function RoyalZ at 0x7fc3980d4d08> 5 bugga_bear <function bugga_bear at 0x7fc3980d47b8> 6 de_Okeeffe <function de_Okeeffe at 0x7fc3980d4bf8> 7 decPwrAFx <function decPwrAFx at 0x7fc3980d4ae8> 8 dreadSkull <function dreadSkull at 0x7fc3980d4b70> 9 nlC3 <function nlC3 at 0x7fc3980d4a60> 10 plC6 <function plC6 at 0x7fc3980d4e18> 11 snflk <function snflk at 0x7fc3980dc048> 12 starfish_ish <function starfish_ish at 0x7fc3980d48c8> 13 starfish_ish_II <function starfish_ish_II at 0x7fc3980d4950> 14 thunderHead <function thunderHead at 0x7fc3980d4f28>
"""
ElGato exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 0
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def ElGato(Z, p=None, Z0=None, ET=None):
""" Z = bugga_bear(Z, p)
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
p[0]
MATLAB:
Z^(2 * Z^( -c(1)^( Z^-c(2) )^( Z^-c(3) )^( Z^-c(4) )^( Z^-c(5) )^( Z^-c(6) )^( Z^-c(7))))
"""
if p is None:
p = [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
return p
elif Z == 0.0+0.0j:
return np.Inf
Zout = Z ** (2 * Z ** (-(
(((((p[0] ** Z ** -p[1]) ** (Z ** -p[2])) ** (Z ** -p[3])) ** (Z ** -p[4])) ** (Z ** -p[5])) ** (
Z ** -p[6]))))
return Zout
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpt5_9io2q
ElGato: 1.708987 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpetkgjlhv
ElGato: 1.744370 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpgb6jsry6
ElGato: 1.788485 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpy7jf2fkk
ElGato: 1.898831 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpl3degkhi
ElGato: 2.371948 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp1nx0twv4
ElGato: 4.214397 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpn_l4to82
ElGato: 5.212695 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpbdrk_vw_
ElGato: 4.480547 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmps4c2ycyq
ElGato: 1.205448 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp49cq7c4b
ElGato: 0.984467 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmputqs21at
ElGato: 0.554686 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9blmd583
ElGato: 0.553489 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpid89k5g0
ElGato: 0.564374 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpsy6nekdl
ElGato: 0.556535 seconds
parameters: [0.083821, -0.2362, 0.46518, -0.91572, 1.6049, -2.3531, 3.2664]
ET Zd Zr All
"""
IslaLace exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 1
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def IslaLace(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 1/4
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
M = [[0.444476893762, 0.508164683992 + 0.420921535772j],
[1.032258783648, 0.229133372072 + 0.959497026392j],
[1.047484735483, -0.314137674746 - 0.226707640874j]]
n = np.random.randint(0, len(M), 1)[0]
return M[n]
elif Z == 0.0+0.0j:
return np.Inf
x = p[0]
c = p[1]
Z = ( Z**(-x**(Z**(-c))) + x**(-Z**(-c**Z))) * (c**(-Z**(-x**Z)) - Z**(-x**(-Z**(-c))) ) + \
( Z**(-x**(Z**(-c))) - x**(-Z**(-c**Z))) * (c**(-Z**(-x**Z)) + Z**(-x**(-Z**(-c))) )
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8ahnhkcl
IslaLace: 0.704244 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp3fzb8klk
IslaLace: 0.826959 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpa5rdbris
IslaLace: 1.037073 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmphrnhj5v2
IslaLace: 1.119098 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpn21f5ab3
IslaLace: 1.552822 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpqa94_eh3
IslaLace: 2.187059 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpzn8t4sea
IslaLace: 1.363039 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpz7dc4n26
IslaLace: 1.158539 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpos3ud636
IslaLace: 1.155875 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpr17xsd78
IslaLace: 0.808886 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpma616w88
IslaLace: 0.802462 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp0foup69w
IslaLace: 0.803077 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpzp96w5rw
IslaLace: 0.784121 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp22h6b8ig
IslaLace: 0.784620 seconds
parameters: [1.032258783648, (0.229133372072+0.959497026392j)]
ET Zd Zr All
"""
ItchicuPpwrF exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 2
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def ItchicuPpwrF(Z, p=None, Z0=None, ET=None, Zm1=0, Zm2=0):
"""
par_set['zoom'] = 0.16
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
return p
for n in range(0, len(p) - 1):
try:
Zn = Z ** (2 * Z ** (-(p[n]) ** (Z ** (-p[n + 1]))))
except:
return Z
pass
if np.isfinite(Zn):
Z = Zn
else:
return Z
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpn8czqa12
ItchicuPpwrF: 8.147320 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp03si8tg3
ItchicuPpwrF: 7.982065 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpszhext48
ItchicuPpwrF: 8.096047 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4w2gea0f
ItchicuPpwrF: 8.165407 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpcyyur8nz
ItchicuPpwrF: 8.026383 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpslqcfp69
ItchicuPpwrF: 7.843848 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp34iespdq
ItchicuPpwrF: 8.150764 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpl78laozs
ItchicuPpwrF: 8.912778 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpvqp7tb_j
ItchicuPpwrF: 8.761282 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpnrnbbutz
ItchicuPpwrF: 6.543793 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8gyptjbs
ItchicuPpwrF: 5.825322 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp1aw741g9
ItchicuPpwrF: 5.622482 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9v2o6vz_
ItchicuPpwrF: 5.725478 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpry17h276
ItchicuPpwrF: 5.719272 seconds
parameters: [0.56890021, -0.25564542, -0.37746896, -0.29588711, -1.47513451, -0.23400405, 0.11844484]
ET Zd Zr All
"""
Nautuliz exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 3
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def Nautuliz(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 1/3
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = [2.792422080721, 1.227827869496+0.063564967216j]
return p
elif Z == 0.0+0.0j:
return np.Inf
Z = Z**(-p[0]**(-Z**(-p[1]))) - p[0]**(-Z**(p[1]))
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpza2pomvp
Nautuliz: 1.017534 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpqvrdyxi5
Nautuliz: 1.000217 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpcks893v4
Nautuliz: 0.971501 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmptff68ht8
Nautuliz: 1.071862 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpkpyx7c0m
Nautuliz: 1.066481 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpus0vd5u4
Nautuliz: 1.142256 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmptsq20jdt
Nautuliz: 0.945327 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpyecisny7
Nautuliz: 0.850575 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpy_mr6t2w
Nautuliz: 0.814117 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp5pmgq8cc
Nautuliz: 0.700091 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpcw2ycpkk
Nautuliz: 0.693977 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpbxmqe4ds
Nautuliz: 0.694154 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp0u_x32kv
Nautuliz: 0.686841 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8uaxujkf
Nautuliz: 0.695005 seconds
parameters: [2.792422080721, (1.227827869496+0.063564967216j)]
ET Zd Zr All
"""
RoyalZ exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 4
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def RoyalZ(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 1/3
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = [0.340859990388, 0.269282250320, -0.255017720861]
return p
nc = len(p)
for n in range(0, nc):
if Z == 0.0 + 0.0j:
return np.Inf
try:
Zn = Z**(-1*np.exp(Z*p[n]))
except:
return Z
pass
if np.isfinite(Zn):
return Zn
else:
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpnze8k57c
RoyalZ: 2.884902 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpd8epu0yn
RoyalZ: 4.739576 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp3rdoafds
RoyalZ: 6.271569 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmps0yuaufs
RoyalZ: 6.686406 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpm2ws8xou
RoyalZ: 7.093311 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpp1zgd26_
RoyalZ: 7.502459 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpffpr1md_
RoyalZ: 4.871599 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpvjyj3v7x
RoyalZ: 5.867659 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpzofa01ba
RoyalZ: 6.254454 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpklblpx1t
RoyalZ: 8.306217 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp6fj8efw8
RoyalZ: 8.842377 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpdqy5gkcr
RoyalZ: 9.042071 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmg7n3emz
RoyalZ: 9.047832 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp0zish7uz
RoyalZ: 8.955890 seconds
parameters: [0.340859990388, 0.26928225032, -0.255017720861]
ET Zd Zr All
"""
bugga_bear exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 5
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def bugga_bear(Z, p, Z0=None, ET=None):
""" Z = bugga_bear(Z, p)
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
EPSILON = 1e-15
if p is None:
return [-0.851612290000, -1.794358160000, -4.450415130000]
if Z == 0.0+0.0j:
return np.Inf
try:
for n in range(1, len(p)+1):
Zok = np.isfinite(Z)
if Zok and np.abs(Z) != 0:
Z = 1 / Z - Z**( n * (Z**( p[n-1]**n )) / np.sqrt(np.pi))
elif Zok:
Z = 1 / EPSILON - Z**( n * (Z**( p[n-1]**n )) / np.sqrt(np.pi))
except:
pass
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmplpynf7z5
bugga_bear: 2.613527 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpyz2nh14e
bugga_bear: 3.726803 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpq_ui2j57
bugga_bear: 4.641132 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp6p0uiqms
bugga_bear: 6.516699 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp6j7y4z_v
bugga_bear: 5.287916 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmplbhafw29
bugga_bear: 3.741577 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpzpnbi76f
bugga_bear: 9.898603 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpha27er2f
bugga_bear: 16.964374 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpbrbdx115
bugga_bear: 18.015430 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmppqkcayo5
bugga_bear: 18.279144 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp1f_t3xtu
bugga_bear: 18.165413 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp3o9f8yfn
bugga_bear: 17.946885 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpq5echfv4
bugga_bear: 17.956569 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8r2g44o_
bugga_bear: 18.283473 seconds
parameters: [-0.85161229, -1.79435816, -4.45041513]
ET Zd Zr All
"""
de_Okeeffe exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 6
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def de_Okeeffe(Z, p, Z0=None, ET=None):
""" Z = de_Okeeffe(Z, p)
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = [1.2759, 0 + 0.074647j, -0.77504 + 0.007449j, 1.2902 - 2.238e-18j, 0.12875]
return p
Z = (p[2] - p[1]*Z) / (p[4] + p[3]*Z**p[0])
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpsvumfbjm
de_Okeeffe: 1.120242 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8x8nuchq
de_Okeeffe: 1.611172 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmptqb9nkyp
de_Okeeffe: 3.132596 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4sd0ov96
de_Okeeffe: 3.558336 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpe31rc_wb
de_Okeeffe: 4.609584 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpjgxiejxy
de_Okeeffe: 5.228825 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpwboyjdpl
de_Okeeffe: 5.418193 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpy63evh15
de_Okeeffe: 5.610853 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpnh8meygu
de_Okeeffe: 5.415626 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpfx99tqwe
de_Okeeffe: 5.544002 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpi4h0k7am
de_Okeeffe: 5.392102 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpwi5cg1_1
de_Okeeffe: 5.489311 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmph2xw8_ds
de_Okeeffe: 5.473190 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4axj0grf
de_Okeeffe: 5.293231 seconds
parameters: [1.2759, 0.074647j, (-0.77504+0.007449j), (1.2902-2.238e-18j), 0.12875]
ET Zd Zr All
"""
decPwrAFx exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 7
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def decPwrAFx(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 1/8
Args:
Z: a real or complex number
p: array real of complex number
Returns:
Z: the result (complex)
Z = 1/Z - Z^(n*Z^(P(n)^n) / sqrt(pi));
"""
if p is None:
p = [np.sqrt(np.pi), 1.13761386, -0.11556857]
return p
elif Z == 0.0+0.0j:
return np.Inf
for n in range(1,len(p)):
Z = 1/Z - Z**(n * Z**(p[n]**n) / p[0])
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpfyqesiem
decPwrAFx: 1.091975 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpb6opyonx
decPwrAFx: 1.493893 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8nt8djih
decPwrAFx: 2.300831 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpeg8iihfn
decPwrAFx: 4.063760 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpqw_ojsrc
decPwrAFx: 6.111083 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpobw9c015
decPwrAFx: 6.642943 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpf1uzzcva
decPwrAFx: 5.418020 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmps5wzux4v
decPwrAFx: 4.385264 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpxwkqxwsf
decPwrAFx: 4.435831 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp15ne7dc2
decPwrAFx: 4.486525 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpo9gpf38k
decPwrAFx: 4.367308 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpxs8t9rjk
decPwrAFx: 4.569911 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmplgjs42qy
decPwrAFx: 4.242968 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4ff8l9tq
decPwrAFx: 4.257357 seconds
parameters: [1.7724538509055159, 1.13761386, -0.11556857]
ET Zd Zr All
"""
dreadSkull exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 8
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def dreadSkull(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 0.4
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
p[0]
MATLAB:
Z = (-Z)^(-exp(Z^x)^(exp(Z^x)^(-exp(Z^x)^(exp(Z^x)^(-exp(Z^x)^(exp(Z^x)^(-exp(Z^x))))))))
"""
if p is None:
p = -0.295887110004
return p
elif Z == 0.0+0.0j:
return np.Inf
ZEP = np.exp(Z ** p)
Zout = (-Z) ** (-ZEP ** (ZEP ** (-ZEP ** (ZEP ** (-ZEP ** (ZEP ** (-ZEP)))))))
return Zout
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpcv7__ddh
dreadSkull: 1.389689 seconds
parameters: -0.295887110004
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp697huy5w
dreadSkull: 1.589202 seconds
parameters: -0.295887110004
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9ddttw4c
dreadSkull: 2.003551 seconds
parameters: -0.295887110004
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp8xgr334f
dreadSkull: 2.282276 seconds
parameters: -0.295887110004
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9dru_yzu
dreadSkull: 2.726846 seconds
parameters: -0.295887110004
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpl2vva4qi
dreadSkull: 2.745387 seconds
parameters: -0.295887110004
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpdszh2uzm
dreadSkull: 3.235733 seconds
parameters: -0.295887110004
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpdcfjjx1_
dreadSkull: 4.353948 seconds
parameters: -0.295887110004
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpigwsbdg6
dreadSkull: 3.018899 seconds
parameters: -0.295887110004
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpm7hgvaz6
dreadSkull: 2.913812 seconds
parameters: -0.295887110004
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpudq26cvk
dreadSkull: 3.124546 seconds
parameters: -0.295887110004
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpd321x307
dreadSkull: 3.018735 seconds
parameters: -0.295887110004
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpupcu47aq
dreadSkull: 3.019200 seconds
parameters: -0.295887110004
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmppvzqoyi2
dreadSkull: 3.031790 seconds
parameters: -0.295887110004
ET Zd Zr All
"""
nlc3 exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 9
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Iterate %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def nlC3(Z, p, Z0=None, ET=None):
"""
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
P_mat = [[0.161145800333, 0.370248409961, 0.119609846764],
[-0.112413777603, -0.350438576801, 0.377731470314],
[-0.107692385723, 1.539081783286, 0.584733068445],
[-1.077419657727, 1.079694186592, 0.567453371505],
[0.106699281931,-1.446300888486, 0.763588120232],
[0.046632473878, 0.223406467719, 1.386264134664],
[0.830928213916, 2.171631574827, -0.651878138495]]
n = np.random.randint(0, len(P_mat), 1)[0]
return P_mat[n]
elif Z == 0.0+0.0j:
return np.Inf
Z = Z**(2*Z**(-p[0]**( Z**-p[1] )**( Z**-p[2] ) ))
return Z
Iterate 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpt6gdvm0z
nlC3: 2.289277 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp1_plhpmg
nlC3: 2.300137 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpqhb23kva
nlC3: 2.201443 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpbrjn4y9c
nlC3: 2.185064 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpllvs2_1r
nlC3: 1.793597 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpjuocm9p8
nlC3: 2.600686 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpvxhh5n9b
nlC3: 4.941481 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp46nxacqb
nlC3: 5.572384 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpx1i72ruv
nlC3: 5.772645 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9h5bzy3b
nlC3: 5.692669 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9n2f34m6
nlC3: 5.849731 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp_0b4p238
nlC3: 5.582160 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp2cksxk7s
nlC3: 5.768039 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpchg8alzh
nlC3: 5.884726 seconds
parameters: [0.161145800333, 0.370248409961, 0.119609846764]
ET Zd Zr All
"""
plC6 exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 10
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Zoom Out %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def plC6(Z, p=None, Z0=None, ET=None):
""" Z = plC6(Z, p)
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
p[0]
MATLAB:
Z = Z^(2*Z^(c(1)^(Z^c(2))^(Z^c(3))^(Z^c(4))^(Z^c(5))^(Z^c(6))))
"""
if p is None:
p = [0.123500832320, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
return p
Z = Z ** (2 * Z ** (p[0] ** (Z ** p[1]) ** (Z ** p[2]) ** (Z ** p[3]) ** (Z ** p[4]) ** (Z ** p[5])))
return Z
Zoom Out 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmq28cyux
plC6: 5.187061 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmphjg36shn
plC6: 4.775912 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpqp6a1i2g
plC6: 4.859100 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp38mjwa4n
plC6: 4.450140 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp_6ppbo93
plC6: 4.259360 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp04m8y1xk
plC6: 3.475205 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpeafwb6tn
plC6: 3.115492 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpwspt7f2g
plC6: 2.615627 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp2mvnpvqd
plC6: 2.301443 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpsi4hu4e5
plC6: 2.081544 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmlbf2hud
plC6: 1.853087 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpbh6671q2
plC6: 1.870944 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpjon3pd3c
plC6: 1.761266 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp5tanj2_5
plC6: 1.772047 seconds
parameters: [0.12350083232, 0.378832330115, 0.825066681155, 1.531812539278, 2.928196237476, 5.071776879804]
ET Zd Zr All
"""
snflk (snowflake) exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 11
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Zoom Out %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def snflk(Z, p, Z0=None, ET=None):
""" Usage:
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = [3.01874673, -1.00776339+0.74204475j]
return p
# Z = Z**(-np.exp(np.pi*p[1])**Z**(-np.sin(np.abs(p[0]+p[1])))**Z**(np.exp(p[1]-p[0])))
Z = Z**(-1*np.exp(np.pi*p[1])**Z**(-np.sin(np.abs(p[0]+p[1])))**Z**(np.exp(p[1]-p[0])))
return Z
Zoom Out 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4_vaay9q
snflk: 6.398229 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpavxp9vnt
snflk: 6.396635 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpno7v58s6
snflk: 6.524266 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpenjvvtmn
snflk: 7.125242 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp6krs_jo0
snflk: 7.440286 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4mu4wwae
snflk: 7.523911 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpe14m5c_q
snflk: 7.770741 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp7s6vc7u0
snflk: 4.647190 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmphsucjize
snflk: 6.189915 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpnknw432q
snflk: 7.316160 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4x9wi58d
snflk: 4.682107 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9lzxv51i
snflk: 6.435849 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpv6drihqf
snflk: 5.697297 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp_onl0y1_
snflk: 7.016850 seconds
parameters: [3.01874673, (-1.00776339+0.74204475j)]
ET Zd Zr All
"""
starfish_ish exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 12
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Zoom Out %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def starfish_ish(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 5/8
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = -0.040431211565 + 0.388620268274j
return p
elif Z == 0.0+0.0j:
return np.Inf
else:
return Z**(-np.exp(Z**p)**(np.exp(Z**p)**(-np.exp(Z**p)**(np.exp(Z**p)**(-np.exp(Z**p))))))
Zoom Out 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpu8mde2us
starfish_ish: 1.239515 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmplngduvty
starfish_ish: 1.503409 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp2v4f6omv
starfish_ish: 2.430415 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpl2b6t5m3
starfish_ish: 4.395857 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpcvfvvgqq
starfish_ish: 7.521290 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp77haqg_t
starfish_ish: 6.386565 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmvpiwg6c
starfish_ish: 4.075689 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpiyxr_6l_
starfish_ish: 5.613433 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpk267_sii
starfish_ish: 4.085314 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp9wkzs_3h
starfish_ish: 5.735621 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp37qw092o
starfish_ish: 5.433427 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmiwf6kns
starfish_ish: 2.761150 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4k2_odoc
starfish_ish: 5.234002 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmprsqllixs
starfish_ish: 5.322239 seconds
parameters: (-0.040431211565+0.388620268274j)
ET Zd Zr All
"""
starfish_ish_II exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 13 # starfish_ish_II
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
z1 = [k/2 for k in range(6, 0, -1)]
z2 = [1/((1+k)**k) for k in range(2, 10)]
zoom_fact_list = z1 + z2
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Zoom Out %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def starfish_ish_II(Z, p=None, Z0=None, ET=None):
"""
par_set['zoom'] = 5/8
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = -0.051448293230 + 0.304348945637j
return p
elif Z == 0.0+0.0j:
return np.Inf
Z = Z**(-np.exp(Z**p)**(np.exp(Z**p)**(-np.exp(Z**p)**(np.exp(Z**p)**(-np.exp(Z**p)**(np.exp(Z**p)**(-np.exp(Z**p))))))))
return Z
Zoom Out 14 times
14 to go
domain & run constraints:
center_point: 0j
zoom: 3.0
theta: 0.0
it_max: 64
max_d: 4.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpjxnkajz8
starfish_ish_II: 1.529876 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
13 to go
domain & run constraints:
center_point: 0j
zoom: 2.5
theta: 0.0
it_max: 64
max_d: 4.8
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpuyyhzsfl
starfish_ish_II: 1.919785 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
12 to go
domain & run constraints:
center_point: 0j
zoom: 2.0
theta: 0.0
it_max: 64
max_d: 6.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmphslbi5l4
starfish_ish_II: 3.464067 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
11 to go
domain & run constraints:
center_point: 0j
zoom: 1.5
theta: 0.0
it_max: 64
max_d: 8.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpt0iuaofl
starfish_ish_II: 5.433443 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpqagj4_pd
starfish_ish_II: 8.825005 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpx695abj2
starfish_ish_II: 8.314856 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpxypa53of
starfish_ish_II: 8.363033 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp_b1po09k
starfish_ish_II: 8.579610 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp5vbbspls
starfish_ish_II: 9.322071 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp4_cfl516
starfish_ish_II: 10.567742 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmphy0i5cqm
starfish_ish_II: 9.957794 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp_bpni8v8
starfish_ish_II: 10.218787 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpxqqp1dbk
starfish_ish_II: 4.375609 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpv0yi3jm0
starfish_ish_II: 8.299417 seconds
parameters: (-0.05144829323+0.304348945637j)
ET Zd Zr All
"""
thunderhead exploration
"""
# scale dist == multiplier of domain diagonal to get escape distance
scale_dist = 12
domain_dict = get_test_domain_dict()
fcn_number = 14 # thunderhead
fcn_name, fcn = name_functionhandle_dict[fcn_number][0], name_functionhandle_dict[fcn_number][1]
p = p = fcn(0.0, None)
list_tuple = [(fcn, (p))]
# zoom_fact_list = [1/k for k in range(1, 200, 10)]
zoom_fact_list = [1/((1+k)**k) for k in range(0, 10)]
n_to_go = len(zoom_fact_list)
display_source(fcn)
print('Zoom Out %i times'%(n_to_go))
for zoom_fact in zoom_fact_list:
domain_dict['zoom'] = zoom_fact
domain_dict['max_d'] = scale_dist / domain_dict['zoom']
print('\t\t%i to go'%(n_to_go))
n_to_go -= 1
display_calc_result(list_tuple, domain_dict)
def thunderHead(Z, p, Z0=None, ET=None):
""" Z = thunderHead(Z, p)
Args:
Z: a real or complex number
p: a real of complex number
Returns:
Z: the result (complex)
"""
if p is None:
p = [3.83796971, -0.09564841+0.83234946j]
return p
elif Z == 0.0+0.0j:
return np.Inf
Z = Z**(2*Z**(-2*p[0]**(-2*Z**(-2*p[1]))))
return Z
Zoom Out 10 times
10 to go
domain & run constraints:
center_point: 0j
zoom: 1.0
theta: 0.0
it_max: 64
max_d: 12.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpfgnnerbm
thunderHead: 2.241115 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
9 to go
domain & run constraints:
center_point: 0j
zoom: 0.5
theta: 0.0
it_max: 64
max_d: 24.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpi01d9198
thunderHead: 2.839938 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
8 to go
domain & run constraints:
center_point: 0j
zoom: 0.1111111111111111
theta: 0.0
it_max: 64
max_d: 108.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmiuhu5lk
thunderHead: 3.329896 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
7 to go
domain & run constraints:
center_point: 0j
zoom: 0.015625
theta: 0.0
it_max: 64
max_d: 768.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmph26e1sp2
thunderHead: 2.132224 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
6 to go
domain & run constraints:
center_point: 0j
zoom: 0.0016
theta: 0.0
it_max: 64
max_d: 7500.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpe6x3f7h_
thunderHead: 3.109158 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
5 to go
domain & run constraints:
center_point: 0j
zoom: 0.0001286008230452675
theta: 0.0
it_max: 64
max_d: 93311.99999999999
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmphw316yo6
thunderHead: 3.018420 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
4 to go
domain & run constraints:
center_point: 0j
zoom: 8.499859752314087e-06
theta: 0.0
it_max: 64
max_d: 1411788.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpmu233dhl
thunderHead: 1.812036 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
3 to go
domain & run constraints:
center_point: 0j
zoom: 4.76837158203125e-07
theta: 0.0
it_max: 64
max_d: 25165824.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmpt727wyow
thunderHead: 1.995925 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
2 to go
domain & run constraints:
center_point: 0j
zoom: 2.3230573125418773e-08
theta: 0.0
it_max: 64
max_d: 516560652.00000006
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmptwrpc3ii
thunderHead: 2.604468 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
1 to go
domain & run constraints:
center_point: 0j
zoom: 1e-09
theta: 0.0
it_max: 64
max_d: 12000000000.0
n_rows: 255
n_cols: 255
tmp_dir: /var/folders/7y/bf1fndjd1w3_qjbnrmb3n_4m0000gn/T/tmp3d67m8c_
thunderHead: 2.488473 seconds
parameters: [3.83796971, (-0.09564841+0.83234946j)]
ET Zd Zr All
whole_page_run_time = time.time() - whole_page_start_time
print('Total Time - Run all Cells = %im %0.3fs'%(whole_page_run_time//60, whole_page_run_time%60))
Total Time - Run all Cells = 16m 6.295s
"""
Nov 12, 2019 run II - lukewarm frame
Total Time - Run all Cells = 16m 6.295s
Nov 12, 2019 run I - lukewarm frame
Total Time - Run all Cells = 7m 27.116s
"""
print('')